package cn.dw.mm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.dw.mm.domain.Contrast;
import cn.dw.mm.service.ContrastService;

@Controller
@RequestMapping("/contrast")
public class ContrastController {
	@Autowired
	private ContrastService contrastService;
	
	@RequestMapping("/id")
	@ResponseBody
	public Contrast selectById(Integer id) {
		return contrastService.selectById(id); 
	}
	
}
